package com.example.smart2.network;

import com.example.smart2.model.AppModel;
import com.example.smart2.model.BannerModel;
import com.example.smart2.model.BannerParkModel;
import com.example.smart2.model.PressCategoryModel;
import com.example.smart2.model.PressModel;
import com.example.smart2.model.ThemeModel;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {
    @GET("/prod-api/api/rotation/list?type=2")
    Call<BannerModel> getBanner();

    @GET("/prod-api/api/service/list?pageNum=1&pageSize=9")
    Call<AppModel> getAppList();

    @GET("/prod-api/press/press/list?pageNum=25&pageSize=2")
    Call<ThemeModel> getTheme();

    @GET("/prod-api/press/category/list")
    Call<PressCategoryModel> getPressCategory();

    @GET("/prod-api/press/press/list")
    Call<PressModel> getPressListType(@Query("type") int type);

    @GET(" /prod-api/press/press/list")
    Call<PressModel> getPressListType();

    @GET("/prod-api/api/service/list")
    Call<AppModel> getAppList2();

    @GET("/prod-api/api/park/rotation/list")
    Call<BannerParkModel> getBanner2();
}
